Method TranslateUniqueViolationAsync(Exception, long?)

Assembly: redb.Core.dll

Builds the typed exception for a unique violation the save just hit. Enrichment — which
structure, scheme, property — is best-effort and runs after the transaction rolled back;
a failure to enrich must never mask the violation itself.

protected Task<RedbUniqueViolationException> TranslateUniqueViolationAsync(Exception ex, long? schemeId)